#include "head.h"

void epoll_add(int epoll_fd, int sock_fd)
{
    struct epoll_event event;
    event.events = EPOLLIN;
    event.data.fd = sock_fd;
    if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, sock_fd, &event) == -1)
        error(1, errno, "epoll_ctl");
}
